package com.yhb.dao;

import com.yhb.model.BalanceFlow;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface BalanceFlowMapper {
    List<BalanceFlow> getAll();

//    BalanceFlow getFlowByPlatformId(@Param("id") String platformId);

    BalanceFlow getFlowById(@Param("id") String platformId);

    int addFlow(@Param("flow") BalanceFlow flow);

    int updateFlow(@Param("flow")BalanceFlow flow);

    BigDecimal getUserBalanceForType(@Param("userId")String userId, @Param("types")List<BalanceFlow.Type> types);

    List<BalanceFlow> getFlowByTypeAdditionalInfo(@Param("type") BalanceFlow.Type type, @Param("additionalInfos") String additionalInfos);

    List<BalanceFlow> getUserBalance(@Param("userId")String userId);

    int deleteBalanceFlow(@Param("flowId")String flowId);

    List<BalanceFlow> getFlow(@Param("flow") BalanceFlow flow);

//    List<BalanceFlow> getWithdrawList(@Param("userId")String userId, @Param("types")List<Integer> types);
}
